Post

Replies

Boosts

Views

Activity

Comment on New iOS String Initializer can't get correct localized String for specific locale
Thanks for your reply, it helped me to figure out the use of locale, it seems I had a problem understanding locale in String before. I used the new Formatter API ParseableFormatStyle and tried to let it be used to specify the text in the output by the following code let colorString = UIColorFormatStyle().mark().locale(Locale(identifier: "zh-cn")).format(UIColor.blue) Looks like I need to tweak the string handling a bit. https://www.fatbobman.com/posts/newFormatter/
Oct ’21